package com.mentalsurvey.service.impl;

import com.mentalsurvey.entity.Option;
import com.mentalsurvey.mapper.OptionMapper;
import com.mentalsurvey.service.OptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OptionServiceImpl implements OptionService {

    @Autowired
    private OptionMapper optionMapper;

    @Override
    public int addOption(Option option) {
        return optionMapper.insertOption(option);
    }

    @Override
    public int addOptionsBatch(List<Option> options) {
        return optionMapper.insertOptionsBatch(options);
    }

}

